﻿using RolePermession.DAL;
using RolePermession.MODEL;
using System.Data;

namespace RolePermession.BLL
{
    public class RolePermessionbll
    {
        RolePermessiondal dal;

        public RolePermessionbll(RolePermessiondal dal)
        {
            this.dal = dal;
        }
        public async Task<int> ADD(Role role)
        {
            return await dal.ADD(role);
        }
        public async Task<IList<Role>> Show()
        {
            return await dal.Show();
        }
        public async Task<int> ADDMember(Member Member)
        {
            return await dal.ADDMember(Member);
        }
        public async Task<IList<Member>> ShowMember()
        {
            return await dal.ShowMember();
        }
        public async Task<int> ADDRolePermessions(RolePermessions RolePermessions)
        {
            return await dal.ADDRolePermessions(RolePermessions);
        }
        public async Task<IList<RolePermessions>> ShowRolePermessions()
        {
            return await dal.ShowRolePermessions();
        }
    }
}
